{php $records2=tag("table=category&condition=moduleid=".$printmoduleid." and parentid=0&pagesize=5&order=listorder,catid&template=null");}
{if $records2}
<div class="main">
	<div class="container">
		<div class="row">
<div class="infomax01 boxvalue">
{loop $records2 $r2}
	<div class="col-b-md-2 clearfix item-top">
		<div class="box-value">
			<div class="box1">
				{php $records1=tag("moduleid=".$printmoduleid."&catid=".$r2["catid"]."&condition=thumb!='' and status=3&pagesize=1&order=level desc,addtime desc&template=null");}
				{if $records1}
				<img src="{$records1[0][thumb]}" align="left" alt="{strip_tags($records1[0][title])}">
				{else}
				<img src="{DT_PATH}template/{$CFG[template]}/skin/images/nopic_box.png" align="left" alt="{strip_tags($r1[title])}">
				{/if}
				<div>
					<div class="clearfix">
						<a class="texttitle" href="{$MODULE[$printmoduleid][linkurl]}{$r2[linkurl]}" title="{strip_tags($r2[catname])}">{strip_tags($r2[catname])}</a>
						<dl>
						{php $records1=tag("moduleid=".$printmoduleid."&catid=".$r2["catid"]."&condition=status=3&pagesize=4&order=level desc,addtime desc&template=null");}
							{loop $records1 $i $r1}
								{if $i%2==0}
							<dt><a class="texttitle" href="{$r1[linkurl]}" target="_blank" title="{strip_tags($r1[title])}">{strip_tags($r1[title])}</a></dt>
								{else}
							<dd><a class="texttitle" href="{$r1[linkurl]}" target="_blank" title="{strip_tags($r1[title])}">{strip_tags($r1[title])}</a></dd>
								{/if}
							{/loop}
						</dl>
					</div>
				</div>
			</div>
			<span><a class="texttitle" href="{$MODULE[$printmoduleid][linkurl]}{$r2[linkurl]}" title="{strip_tags($r2[catname])}">{strip_tags($r2[catname])}</a></span>
		</div>
	</div>
{/loop}
</div>
		</div>
	</div>
</div>
{/if}